home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / LINUX / IOPORT.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  1KB  |  36 lines

  1. /*
  2.  * portio.h    Definitions of routines for detecting, reserving and
  3.  *        allocating system resources.
  4.  *
  5.  * Version:    0.01    8/30/93
  6.  *
  7.  * Author:    Donald Becker (becker@super.org)
  8.  */
  9.  
  10. #ifndef _LINUX_PORTIO_H
  11. #define _LINUX_PORTIO_H
  12.  
  13. #define HAVE_PORTRESERVE
  14. /*
  15.  * Call check_region() before probing for your hardware.
  16.  * Once you have found you hardware, register it with request_region().
  17.  * If you unload the driver, use release_region to free ports.
  18.  */
  19. extern void reserve_setup(char *str, int *ints);
  20. extern int check_region(unsigned long from, unsigned long extent);
  21. extern void request_region(unsigned long from, unsigned long extent,const char *name);
  22. extern void release_region(unsigned long from, unsigned long extent);
  23. extern int get_ioport_list(char *);
  24.  
  25. #ifdef __sparc__
  26. extern unsigned long occupy_region(unsigned long base, unsigned long end,
  27.                    unsigned long num, unsigned int align,
  28.                    const char *name);
  29. #endif
  30.  
  31. #define HAVE_AUTOIRQ
  32. extern void autoirq_setup(int waittime);
  33. extern int autoirq_report(int waittime);
  34.  
  35. #endif    /* _LINUX_PORTIO_H */
  36.